package javaBase.nowcoder.HJ72_A_百钱买百鸡问题;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.regex.Pattern;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str1 = br.readLine();
        if (Pattern.compile("\\d+").matcher(str1).matches()) {
            for (int i = 0; i <= 20; i++) {
                for (int j = 0; j <= 33; j++) {
                    for (int k = 0; k <= 100; k++) {
                        if (i + j + k == 100 && k % 3 == 0 && i * 5 + j * 3 + k / 3 == 100) {
                            System.out.println(i + " " + j + " " + k);
                        }
                    }
                }
            }
        }


    }
}
